import { connect } from 'umi';

function Users({ customers }) {
  return (
    <div>
      <h1>Employee Page</h1>
      <ul>
        {customers.map((e) => (
          <li key={e.key}>{JSON.stringify(e)}</li>
        ))}
      </ul>
    </div>
  );
}

export default connect(({ customers }) => ({ customers }))(Users);
